package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.entity.AppendixRelationship;
import com.repository.AppendixRelationshipDao;
import com.service.base.BaseServiceImp;

@Service("AppendixRelationshipService")
public class AppendixRelationshipServiceImp extends BaseServiceImp<AppendixRelationship> implements  AppendixRelationshipService{
	@Autowired
	private AppendixRelationshipDao appendixRelationshipDao;
	
	@Override
	@Transactional
	public boolean insertprice(AppendixRelationship o) {
		AppendixRelationship appr=new AppendixRelationship();
		List<AppendixRelationship> apprs=appendixRelationshipDao.find(appr);
		if (apprs.size()>0) {
			return false;
		}
		return true;
	}
	
}
